#include "Node.h"

//------------------------------------------------------------------------------
ANode::ANode() 
: m_parent(NULL), 
  m_cost(0.0f),
  m_acumCost(0.0f),
  m_row(0),
  m_column(0)
{
}
//------------------------------------------------------------------------------
ANode::~ANode() {
}
//------------------------------------------------------------------------------
void ANode::addAdjacent(ANode* node) {

	m_adjacents.push_back(node);
}
//------------------------------------------------------------------------------
void ANode::setParent(ANode* parent) {

	m_parent = parent;
}
//------------------------------------------------------------------------------
void ANode::setCost(float cost) {

	m_cost = cost;
}
//------------------------------------------------------------------------------
void ANode::setRow(int row) {

	m_row = row;
}
//------------------------------------------------------------------------------
void ANode::setColumn(int column) {

	m_column = column;
}
//------------------------------------------------------------------------------
int ANode::getRow() const {

	return m_row;
}
//------------------------------------------------------------------------------
int ANode::getColumn() const {

	return m_column;
}
//------------------------------------------------------------------------------
std::vector<ANode*> ANode::getAdjacents() {

	return m_adjacents;
}
//------------------------------------------------------------------------------
float ANode::getCost() const {

	return m_cost;
}
//------------------------------------------------------------------------------
ANode* ANode::getParent() {

	return m_parent;
}
//------------------------------------------------------------------------------
